package com.jackson0714.passjava.gateway.controller;

import com.google.common.collect.Maps;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.Map;

/**
  * @Description:默认降级处理请求入口
  * @Version v1.0.0
  * @author zhangpeng148
  * @date 2022/1/25 14:46
  */
@RestController
public class DefaultHystrixController {

    @RequestMapping(value = "/defaultFallback")
    public Map<String,String> defaultOperate(){
        Map<String, String> resMap = Maps.newHashMap();
        resMap.put("msg","业务繁忙请稍后再试！");
        return  resMap;
    }
}
